<template>
	<div>
		<div style="display: flex;">
			<router-link to="/">
				首页
			</router-link>
			<router-link  v-if="item.typename.split('').length<=2" :to="{name:'channel',params:{tid:item.tid}}" v-for="(item,index) in navList" :key="index" >
				{{item.typename}}
			</router-link>
			<router-link  v-else  :to="{name:'channel',params:{tid:item.tid}}" >
				{{item.typename}}
			</router-link>
		</div>
	</div>
	
</template>

<script>
	export default {
		data(){
			return {
				navList:window.__INITIAL_STATE__.reduxAsyncConnect.partitionList[0]
			}
		}
	}
</script>

<style>
</style>